/**
 *
 *
 * 
 *
 * 
 */

package io.dbw.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 角色
 *
 * 
 */
@Data
@TableName("sys_role")
@Api(tags = "角色实体类")
public class SysRoleEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	 * 角色ID
	 */
	@TableId
	@ApiModelProperty(value = "角色ID",required = true)
	private Long roleId;



	/**
	 * 角色名称
	 */
	@NotBlank(message="角色名称不能为空")
	@ApiModelProperty(value = "角色名称" , required=true)
	private String roleName;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;
	
	/**
	 * 创建者ID
	 */
	@ApiModelProperty(value = "创建者ID")
	private Long createBy;

	@TableField(exist=false)
	@ApiModelProperty(value = "所属菜单ID集合",required = true)
	private List<Long> menuIdList;
	
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	/**
	 * 状态  0：禁用   1：正常
	 */
	@ApiModelProperty(value = "状态;0:禁用,1:正常",required = true)
	private Integer status;

	@ApiModelProperty(value = "是否删除:Y:是;N:否"  )
	private String deleteFlag;

	@ApiModelProperty(value = "初始化"  )
	private String initType;
}
